/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.duckhunter.bloodbath;


import java.io.IOException;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;


public class BuckShotSprite extends Sprite {
    private static final int WIDTH = 5;
    private static final int HEIGHT = 10;


    
    public BuckShotSprite() throws IOException {
      super( Image.createImage("/res/gold_bullet.png"),WIDTH, HEIGHT);
      defineReferencePixel( WIDTH / 2,
                            HEIGHT / 2);
  }

  public void moveR() {
          
      //nextFrame();
     
      int xdelta = 5;
      int ydelta = -8;


      move(xdelta, ydelta);
  }

  public void moveL() {

      //nextFrame();

      int xdelta = -5;
      int ydelta = -8;


      move(xdelta, ydelta);
  }
}
